<?php
require('php/controler/CtrlMain.php');
Main::runService('Parametrage');
?>


<form method="post">
	<?php foreach(Properties::getAllValues() as $property => $value){ ?>
	
	
		<?php if(is_array($value)): ?>
		
		
			<label>
				<?= $property ?> :
				<textarea name="<?= $property ?>"><?= implode(PHP_EOL,$value) ?></textarea>
			</label><br/>
			
			
		<?php else: ?>
		
		
			<label>
				<?= $property ?> :
				<input name="<?= $property ?>" value="<?= $value ?>"/>
			</label><br/>
			
			
		<?php endif; ?>
		
		
	<?php } ?>
	<button type="submit" name="action" value="saveParam">Enregistrer</button>
</form>